<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', function()
{
	return View::make('hello');
});
Route::resource('users', 'UsersController');
Route::get('register', 'UsersController@register');
Route::post('register', 'UsersController@postRegister');
Route::get('login', 'LoginController@login');
Route::post('login', 'LoginController@postLogin');
Route::get('logout', 'LoginController@logout');

Route::resource('accidents', 'AccidentsController');

Route::resource('cases', 'CasesController');

Route::resource('statuses', 'StatusesController');